package com.leyou.trade;

import com.leyou.auth.annotation.EnableJwtVerification;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
@MapperScan("com.leyou.trade.mapper")
@SpringBootApplication(scanBasePackages = {"com.leyou.trade", "com.leyou.common.advice"})
@EnableFeignClients(basePackages = {"com.leyou.auth.client","com.leyou.user.client","com.leyou.item.client"})
//用户拦截器开关  获取用户信息
// 在这个EnableJwtVerification类里面动态开关 用的时候加高级  加这个注解就是使MvcConfiguration注入IOC  生成主键
//因此任何项目只要引入了@EnableJwtVerification就可以使得MvcConfiguration生效，从而使拦截器生效。
@EnableJwtVerification

public class LyTradeApplication {
    public static void main(String[] args) {
        SpringApplication.run(LyTradeApplication.class, args);
    }
}
